package com.wt.admin.service.ai.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wt.admin.domain.dto.ai.AgentsClassDTO;
import com.wt.admin.domain.entity.ai.AgentsClassEntity;
import com.wt.admin.domain.vo.ai.AgentsClassVO;
import com.wt.admin.mapper.ai.AgentsClassMapper;
import com.wt.admin.service.ai.AgentsClassService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AgentsClassServiceImpl extends ServiceImpl<AgentsClassMapper,AgentsClassEntity> implements AgentsClassService {

    @Resource
    private AgentsClassMapper agentsClassMapper;

    @Override
    public List<AgentsClassVO> classList(AgentsClassDTO data) {
        return agentsClassMapper.classList(data);
    }

    @Override
    public AgentsClassVO classEdit(AgentsClassDTO data) {
        saveOrUpdate(data);
        return null;
    }

    @Override
    public void classDel(AgentsClassDTO data) {
        removeById(data);
    }

}
